<template>
    <div>
        我是嘻嘻iiii
        <Study :message="message" @child-event="parentEvent"></Study>
        {{ datas }}
    </div>
</template>

<script>
import Study from "./Study";
export default {
    name: 'HomeMessagepage',
    components: {
        Study
    },
    data() {
        return {
            message: "我是父组件的东西",
            datas:"",
        }
    },
    methods: {
        parentEvent(data){
            this.datas = data
        }
    }

}
</script>

<style lang="scss" scoped></style>